<aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar" style="height: auto;">
     <ul class="sidebar-menu tree" data-widget="tree">
        <li class="header fc-white">查看公司并选择设备：</li>
        <!-- Optionally, you can add icons to the links -->
        <li class="treeview" *ngFor="let tree of trees;let count = index" [class.active]="count==0">
          <a>
            <span>{{tree.parent.name}}</span>
            <span class="pull-right-container">
                <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li *ngFor="let child of tree.children" ><a (click) = "sendChild(child)" [class.fc-warning]="status == child.meterID"><i class="fa fa-circle-o"></i>{{child.name}}</a></li>
          </ul>
        </li>
      </ul>
    </section>
    <!-- /.sidebar -->
  </aside>
